<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model;

class Trace extends Model
{
	use HasDateTimeFormatter;
    use SoftDeletes;
    protected $table = 'traces';
    protected $fillable = [
        'user_id',
        'sort_id',
        'episodes_id',
    ];

    public function episode()
    {
        return $this->hasOne(Episode::class,'id','episodes_id');
    }
    }
